//
//  HomeImageModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/19.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "HomeImageModel.h"

@implementation HomeImageModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.ID = dict[@"id"];
        self.imageUrl = dict[@"imageUrl"];
        self.position = dict[@"position"];
        self.toPageType = [dict[@"toPageType"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    if (!dict) return [[HomeImageModel alloc]init];
    return [[HomeImageModel alloc]initWithDict:dict];
}

@end
